xml.instruct! :xml, :version => "1.0", :encoding => "utf-8"

xml.time_table do

  @programs.each do |program|
    xml.program do
      xml.title     program.title
      xml.pd_name   program.pd_name
      xml.o_name    program.operator_name

      xml.start_hour    program.start_hour
      xml.start_minute  program.start_minute
      xml.end_hour      program.end_hour
      xml.end_minute    program.end_minute

      xml.logo_position   program.logo_position
      xml.logo_url        program.logo_url
      xml.background_url  program.background_url
    end
  end

end

